package com.twu.bibilioteca;

import junit.framework.TestCase;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/20/14
 * Time: 2:54 PM
 * To change this template use File | Settings | File Templates.
 */
public class MovieTest {
    
    Movie movie = new Movie("manam" , "vikram", 2014 , 10);
    @Test
    public void shouldCheckForTitle()
    {
        assertEquals("manam", movie.getName());
        
    }

    @Test
    public void shouldCheckForDirector()
    {
        assertEquals("vikram", movie.getDirector());

    }

    @Test
    public void shouldCheckForYear()
    {
        assertEquals(2014, movie.getYear());

    }

    @Test
    public void shouldCheckForRating()
    {
        assertEquals(10, movie.getRating());

    }

    @Test
    public void shouldCheckForEqualMovieObjects()
    {
        assertEquals(new Movie("manam" , "vikram", 2014 , 10) , new Movie("manam" , "vikram", 2014 , 10));
    }

}
